#include<iostream>
#include<algorithm>
using namespace std;
int main()
{
    int m;
    cin>>m;
    int arr[m];
    for(int i=0;i<m;++i)
    {
        cin>>arr[i];
    }
    sort(arr,arr+m);
    int a=unique(arr,arr+m)-arr;
    for(int i=0;i<a;++i)
    {
        cout<<arr[i]<<" ";
    }
    return 0;
}
